﻿using Microsoft.EntityFrameworkCore;
using Abp.Zero.EntityFrameworkCore;
using AbpBuild.Authorization.Roles;
using AbpBuild.Authorization.Users;
using AbpBuild.MultiTenancy;
using AbpBuild.LawManage;
using AbpBuild.WenShu;
using Abp.EntityFrameworkCore;
using Abp.Dependency;
using AbpBuild.BaseData;

namespace AbpBuild.EntityFrameworkCore
{
    public class AbpBuildWenShuDbContext : AbpDbContext
    {
        /* Define a DbSet for each entity of the application */
        
        public AbpBuildWenShuDbContext(DbContextOptions<AbpBuildWenShuDbContext> options)
            : base(options)
        {
        }
        protected override void OnModelCreating(ModelBuilder builder)
        {

            base.OnModelCreating(builder);
            //
            builder.Entity<record>((entityBuilder) =>
            {
                // 重命名字段 - 映射到数据库
                entityBuilder.Property(o => o.Id).HasColumnName("docId");
            });
        }
        public virtual DbSet<record> records { get; set; }

        //
        

    }
}
